package Animal;
//Dog.java
public class Dog extends Animal {
    public Dog(String name) {
        super(name);
    }
    @Override
    void eat() {
        System.out.println(name + "吃狗粮");
    }
    //Dog类 特有的方法
    void bark(){
        System.out.println(name + "汪汪");
    }
}
